package com.small.account.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.small.account.entity.AuPermission;

import java.util.List;
import java.util.Set;

/**
 * 服务类
 *
 * @author wangguochao
 * @since 2020-01-06
 */
public interface IAuPermissionService extends IService<AuPermission> {


    /**
     * 权限树
     *
     * @return 权限
     */
    List<AuPermission> findTree(String userName);

    /**
     * 用户菜单
     *
     * @param userName 账号
     * @param scope
     * @return 权限
     */
    List<AuPermission> findTreeByUserName(String userName, String scope);

    /**
     * 用户权限
     *
     * @param userName 账号
     * @return 权限
     */
    List<AuPermission> findByUserName(String userName);
}
